<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-后台用户详情页面</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
        
    </head>
    <body class="skin-blue">
        
		<!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
        
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
			<!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                       企业用户管理
                        <small>企业用户详情</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">企业用户管理</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
                        <!-- table数据 -->
                        <div class="box-body table-responsive">
                            <div class="dataTables_wrapper form-inline fixwrapperscroll" role="grid">
                                <div class="row">
                                    <div class="col-xs-6"></div>
                                    <div class="col-xs-6"></div>
                                </div>
			                	<table class="table table-bordered table-hover dataTable">
									<tbody>
										<tr>
											<td width="20%" class="taright">登陆账号：</td>
											<td width="30%"><span>
											<c:if test="${userInfo.userEmail != '' && userInfo.userEmail != null}">${userInfo.userEmail}</c:if>
				                			<c:if test="${userInfo.userEmail == '' || userInfo.userEmail == null}">${userInfo.userTel}</c:if>
											</span></td>
											<td width="20%" class="taright">注册方式：</td>
											<td><span>
											<c:if test="${userInfo.isYun == 0}">管理员</c:if>
				                			<c:if test="${userInfo.isYun == 1}">云商城注册</c:if>
				                			<c:if test="${userInfo.isYun == 2}">普元个人</c:if>
											</span></td>
										</tr>
										<tr class="alt">
											<td width="20%" class="taright">绑定邮箱：</td>
											<td width="30%"><span>${userInfo.boundEmail}</span></td>
											<td width="20%" class="taright">绑定手机号：</td>
											<td><span>${userInfo.boundTel}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">用户邮箱：</td>
											<td width="30%"><span>${userInfo.userEmail}</span></td>
											<td width="20%" class="taright">用户手机号：</td>
											<td><span>${userInfo.userTel}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">注册时间：</td>
											<td width="30%"><span><fmt:formatDate value="${userInfo.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span></td>
											<td width="20%" class="taright">上次登录时间：</td>
											<td><span><fmt:formatDate value="${userInfo.lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">用户姓名：</td>
											<td width="30%"><span>${userInfo.realName}</span></td>
											<td width="20%" class="taright">用户性别：</td>
											<td><span>${userInfo.sex}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">固定电话：</td>
											<td width="30%"><span>${userInfo.fixationTel}</span></td>
											<td width="20%" class="taright">联系电话：</td>
											<td><span>${userInfo.phone}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">用户传真：</td>
											<td width="30%"><span>${userInfo.fax}</span></td>
											<td width="20%" class="taright">虚拟号：</td>
											<td><span>${userInfo.virtualPhone}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">账户余额（元）：</td>
											<td width="30%"><span><fmt:formatNumber value="${userInfo.accountMoney}" pattern="#0.00"/></span></td>
											<td width="20%" class="taright">可索取发票余额（元）：</td>
											<td><span><fmt:formatNumber value="${userInfo.invoiceMoney}" pattern="#0.00"/></span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">公司全称：</td>
											<td width="30%"><span>${userInfo.belongCompanyName}</span></td>
											<td width="20%" class="taright">所在部门：</td>
											<td><span>${userInfo.companyDepartment}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">所在公司规模：</td>
											<td width="30%"><span>${userInfo.companyScaleName}</span></td>
											<td width="20%" class="taright">公司担任职位：</td>
											<td><span>${userInfo.companyPosition}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">公司所属行业：</td>
											<td width="30%"><span>${userInfo.companyIndustryName}</span></td>
											<td width="20%" class="taright">是否实名认证</td>
											<td><span>
											<c:if test="${userInfo.approve == 0}">是</c:if>
				                			<c:if test="${userInfo.approve == 1}">否</c:if>
											</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">公司地址：</td>
											<td width="30%"><span>${userInfo.provinceCodeName} ${userInfo.cityCodeName} ${userInfo.areaCodeName} ${userInfo.address} </span></td>
											<td width="20%" class="taright">IP地址：</td>
											<td><span>未知 暂未查询</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">企业域名：</td>
											<td width="30%"><span>${userInfo.companyDomainName}</span></td>
											<td width="20%" class="taright">主叫号码：</td>
											<td><span>${userInfo.callPhone}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">联系人姓名：</td>
											<td width="30%"><span>${userInfo.contactName}</span></td>
											<td width="20%" class="taright">联系人邮箱：</td>
											<td><span>${userInfo.personEmail}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">状态：</td>
											<td width="30%"><span>
											<c:if test="${userInfo.isLive == 0}">未激活</c:if>
											<c:if test="${userInfo.isLive == 1}">
												<c:if test="${userInfo.userValid == 0}">有效</c:if>
					                			<c:if test="${userInfo.userValid == 1}">无效</c:if>					
											</c:if>
											</span></td>
										</tr>
									</tbody>
								</table>
                            </div>
                        </div>


                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->
        <script type="text/javascript">
			var currentMenu = 'userManager';
		</script>
		<!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>

		<script src="/js/admin/userManager/companyManager.js"></script>
    </body>
</html>
